package datastructure.linear.list;

import static org.junit.Assert.*;

import org.junit.Test;

public class SingleListTest {

	@Test
	public void testToString() {
		Integer[] arr = {1,3,5,7,9};
		SingleList sl = new SingleList();
		sl.add(arr);
		assertEquals(sl.toString(),"1 3 5 7 9 ");
	}

	@Test
	public void testSize() {
		Integer[] arr = {1,3,5,7,9};
		SingleList sl = new SingleList();
		sl.add(arr);
		assertEquals(sl.size(),5);
	}


}
